package com.zzh.model.Info;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @PackageName:com.zzh.model.Info
 * @ClassName:info
 * @Description:
 * @author:zhangzhanheng
 * @date: 2020/12/24 17:07
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Document(indexName = "zq_test", type = "info")
public class InfoDemo {
    @Id
    private Integer id;

    @Field(type = FieldType.Keyword)
    private String userName;

    private String email;
}
